package com.juc.semaphore.semaphore14;

public class ThreadB extends Thread{
	
	private Service sevice;
	
	public ThreadB(Service service) {
		super();
		this.sevice =service;
	}
	
	@Override
	public void run() {
		sevice.testMethod();
	}

}
